<?php

/**
 * Project form.
 *
 * @package    mysmartmanager
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ProjectForm extends BaseProjectForm
{
  public function configure()
  {     
	$this->widgetSchema->setLabels(array(
      'projectname'   => 'Project Name *',
      'startdate'    => 'Start Date *',
      'enddate'      => 'End Date *',     
	));
    $this->validatorSchema->setPostValidator(new sfValidatorAnd(array(new sfValidatorSchemaCompare('startdate', '<', 'enddate', array('throw_global_error' => false), array('invalid' => 'The start date must be before the end date <br />')))));
	unset($this['createdate'], $this['createdby']);
  }
}
